package util.web.mailing;

/**
 * 
 * @author jinyi
 *
 */
public abstract class HTMLEmail extends EmailBase {

	private String charset = "utf-8";
	
	@Override
	public String getContentType() {
		if (charset == null || "".equals(charset)) {
			return "text/html";
		}
		return "text/html; charset=" + charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}
	public String getCharset() {
		return charset;
	}

}
